package studia.figlewicz.dao.ejb;

// Generated 2011-06-15 09:11:23 by Hibernate Tools 3.4.0.CR1

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * Wycenyportfeli generated by hbm2java
 */
@Entity
@Table(name = "WYCENYPORTFELI", schema = "MARCIN", uniqueConstraints = @UniqueConstraint(columnNames = {
		"NAZWAPORTFELA", "DATAWYCENY" }))
public class Wycenyportfeli implements java.io.Serializable {

	private BigDecimal idwycenyportfela;
	private Portfele portfele;
	private Date datawyceny;
	private Date datauzyskaniawyniku;
	private BigDecimal cenarealna;
	private BigDecimal delta;
	private BigDecimal gamma;
	private BigDecimal rho;
	private BigDecimal vega;
	private String login;
	private String opis;
	private Set<Wycenyinstrumentow> wycenyinstrumentows = new HashSet<Wycenyinstrumentow>(
			0);

	public Wycenyportfeli() {
	}

	public Wycenyportfeli(BigDecimal idwycenyportfela, Portfele portfele,
			Date datawyceny) {
		this.idwycenyportfela = idwycenyportfela;
		this.portfele = portfele;
		this.datawyceny = datawyceny;
	}

	public Wycenyportfeli(BigDecimal idwycenyportfela, Portfele portfele,
			Date datawyceny, Date datauzyskaniawyniku, BigDecimal cenarealna,
			BigDecimal delta, BigDecimal gamma, BigDecimal rho,
			BigDecimal vega, String login, String opis,
			Set<Wycenyinstrumentow> wycenyinstrumentows) {
		this.idwycenyportfela = idwycenyportfela;
		this.portfele = portfele;
		this.datawyceny = datawyceny;
		this.datauzyskaniawyniku = datauzyskaniawyniku;
		this.cenarealna = cenarealna;
		this.delta = delta;
		this.gamma = gamma;
		this.rho = rho;
		this.vega = vega;
		this.login = login;
		this.opis = opis;
		this.wycenyinstrumentows = wycenyinstrumentows;
	}

	@Id
	@Column(name = "IDWYCENYPORTFELA", unique = true, nullable = false, precision = 22, scale = 0)
	public BigDecimal getIdwycenyportfela() {
		return this.idwycenyportfela;
	}

	public void setIdwycenyportfela(BigDecimal idwycenyportfela) {
		this.idwycenyportfela = idwycenyportfela;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "NAZWAPORTFELA", nullable = false)
	public Portfele getPortfele() {
		return this.portfele;
	}

	public void setPortfele(Portfele portfele) {
		this.portfele = portfele;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATAWYCENY", nullable = false, length = 7)
	public Date getDatawyceny() {
		return this.datawyceny;
	}

	public void setDatawyceny(Date datawyceny) {
		this.datawyceny = datawyceny;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATAUZYSKANIAWYNIKU", length = 7)
	public Date getDatauzyskaniawyniku() {
		return this.datauzyskaniawyniku;
	}

	public void setDatauzyskaniawyniku(Date datauzyskaniawyniku) {
		this.datauzyskaniawyniku = datauzyskaniawyniku;
	}

	@Column(name = "CENAREALNA", precision = 24, scale = 12)
	public BigDecimal getCenarealna() {
		return this.cenarealna;
	}

	public void setCenarealna(BigDecimal cenarealna) {
		this.cenarealna = cenarealna;
	}

	@Column(name = "DELTA", precision = 24, scale = 12)
	public BigDecimal getDelta() {
		return this.delta;
	}

	public void setDelta(BigDecimal delta) {
		this.delta = delta;
	}

	@Column(name = "GAMMA", precision = 24, scale = 12)
	public BigDecimal getGamma() {
		return this.gamma;
	}

	public void setGamma(BigDecimal gamma) {
		this.gamma = gamma;
	}

	@Column(name = "RHO", precision = 24, scale = 12)
	public BigDecimal getRho() {
		return this.rho;
	}

	public void setRho(BigDecimal rho) {
		this.rho = rho;
	}

	@Column(name = "VEGA", precision = 24, scale = 12)
	public BigDecimal getVega() {
		return this.vega;
	}

	public void setVega(BigDecimal vega) {
		this.vega = vega;
	}

	@Column(name = "LOGIN", length = 30)
	public String getLogin() {
		return this.login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	@Column(name = "OPIS", length = 500)
	public String getOpis() {
		return this.opis;
	}

	public void setOpis(String opis) {
		this.opis = opis;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "wycenyportfeli")
	public Set<Wycenyinstrumentow> getWycenyinstrumentows() {
		return this.wycenyinstrumentows;
	}

	public void setWycenyinstrumentows(
			Set<Wycenyinstrumentow> wycenyinstrumentows) {
		this.wycenyinstrumentows = wycenyinstrumentows;
	}

}
